//
//  LYQMinePositionManageViewController.m
//  ZCProject
//
//  Created by Zheng on 2016/12/13.
//  Copyright © 2016年 Zheng. All rights reserved.
//

#import "LYQMinePositionManageViewController.h"

#import "LYQPositionManageCell.h"

#define kLYQPositionManageCell_ID @"kLYQPositionManageCell_ID"

@interface LYQMinePositionManageViewController () <UITableViewDelegate, UITableViewDataSource>

@end

@implementation LYQMinePositionManageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"职位管理";
    
    self.listTableView.delegate = self;
    self.listTableView.dataSource = self;
    [self.listTableView registerClass:[LYQPositionManageCell class] forCellReuseIdentifier:kLYQPositionManageCell_ID];
    self.listTableView.estimatedRowHeight = kWScale(110);
    self.listTableView.rowHeight = kWScale(110);
    self.listTableView.sectionHeaderHeight = kWScale(10);
    self.listTableView.estimatedSectionHeaderHeight = kWScale(10);
    
}

#pragma mark - tableview datasource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 3;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    LYQPositionManageCell *cell = [tableView dequeueReusableCellWithIdentifier:kLYQPositionManageCell_ID forIndexPath:indexPath];
    
    return cell;
}

#pragma mark - tableview delegate
#pragma mark 尾视图高度
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    return 0.0001f;
}

#pragma mark 单元格点击事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    NSLog(@"跳转到第%ld职位详情",indexPath.section);
}

#pragma mark - 内存管理
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
